package com.crl.module.npc.model.action
{
	import com.crl.module.npc.controller.INpcLogic;
	
	/**
	 * 跳转到下一个关联问题action
	 * @author crl;
	 * 
	 */	
	public class GotoSectionAction extends AbstractAction
	{
		private var key:String;
		public function GotoSectionAction(npc:INpcLogic)
		{
			super(npc);
			
			this.type="goto";			
		}
		
		override public function parseXML(xml:XML):void{
			var key:String=xml.@section;
			this.key=key;
		}

		override public function execute():void
		{
			this.npc.gotoSection(key);
		}
		
	}
}